﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     xmlns:model="clr-namespace:GoogleAPIOnWindowsPhone.Model"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<!-- Resource dictionary entries should be defined here. -->
    <Style x:Key="PushpinStyle1" TargetType="model:PushpinCustom">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="model:PushpinCustom">
                    <Grid x:Name="ContentGrid" FlowDirection="LeftToRight">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="77*"/>
                            <ColumnDefinition Width="24*"/>

                        </Grid.ColumnDefinitions>
                        <StackPanel Orientation="Vertical" Margin="0,0,-83,-1" HorizontalAlignment="Left" Width="183" Grid.ColumnSpan="3">
                            <Grid Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Left" MinWidth="29" MinHeight="31" Width="183" Height="29" Margin="0,0,-51,0">
                                <ContentPresenter x:Name="Presenter" Content="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" FlowDirection="{Binding FlowDirection, RelativeSource={RelativeSource TemplatedParent}}" Margin="4"/>
                            </Grid>
                            <Polygon Fill="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Left" Height="29" Points="0,0 29,0 0,29" Width="29"/>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="PositionOrigin" Value="0,1"/>
        <Setter Property="Background" Value="Black"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="FontSize" Value="18"/>
    </Style>
</ResourceDictionary>